import { post } from '../http'

/**
 * @description: 年检管理列表
 * @param data
 * @return Promise
 */
export const getCarInspectList = (data) => post({ url: '/inspection/getList', data })

/**
 * @description: 获取车辆违章信息
 * @param data
 * @return Promise
 */
export const getCarViolationInfo = (data) => post({ url: '/violation/getList', data })

/**
 * @description: 新增年检
 * @param data
 * @return Promise
 */
export const addInspect = (data) => post({ url: '/inspection/save', data })

/**
 * @description: 新增供应商
 * @param data
 * @return Promise
 */
export const addSupplier = (data) => post({ url: '/supplier/save', data })

/**
 * @description: 年检详情
 * @param data
 * @return Promise
 */
export const inspectDetail = (data) => post({ url: '/inspection/detail', data })

/**
 * @description: 导出
 * @param data
 * @return Promise
 */
export const exportInspect = (data) => post({ url: '/inspection/exportExcel', data })

/**
 * @description: 获取供应商列表
 * @param data
 * @return Promise
 */
export const getSupplierList = (data) => post({ url: '/supplier/findList', data })

/**
 * @description: 开始年检
 * @param data
 * @return Promise
 */
export const startSave = (data) => post({ url: '/inspection/start', data })

/**
 * @description: 完成年检
 * @param data
 * @return Promise
 */
export const endSave = (data) => post({ url: '/inspection/end', data })

/**
 * @description: 获取车辆信息
 * @param data
 * @return Promise
 */
export const getCarDetail = (data) => post({ url: '/carInfo/detail', data })

/**
 * @description: 获取下次年检时间
 * @param data
 * @return Promise
 */
export const getPlanTime = (data) => post({ url: '/inspection/getPlanTime', data })

/**
 * @description: 获取订单车辆详情
 * @param data
 * @return Promise
 */
export const getOrderCarInfo = (data) => post({ url: '/carInfo/orderCarInfo', data })

/** 关闭年检单 */
export const closeInspect = (data) => post({ url: '/inspection/close', data })

/** 删除年检单 */
export const deleteInspect = (data) => post({ url: '/inspection/remove', data })
